<div class="modal-header">
    <h3 class="modal-title" >添加班级[{{classname}}]教师</h3>
	
</div>
<div class="modal-body">
    <form role="form" name="form">
        <div class="form-group">
            <label class="control-label" >班级ID</label>  {{classid}}    
        </div>
		<div class="form-group">
		    <label class="control-label">班级名</label>
			{{classname}}
		</div>
		<div class="form-group">
		    <label>用户编号</label>           
		    <input type="text" class="form-control" name="userid" data-ng-model="userid" placeholder="输入用户编号" autofocus ng-pattern="restrictNumber2"
		        ng-class="{'input--error': form.userid.$valid == false, 'input': form.userid.$valid == true}" ng-keyup="myKeyup($event)" ng-blur="onblur($event)">
		        <span class="chars" ng-class="{'chars--active': form.userid.$valid == false, 'chars': form.userid.$valid == true}">仅限 [0-9]字符.</span>
		        <span class="help-block" data-ng-show="errorClass == 'has-error userid'" data-ng-bind="errorMessage"></span>
		</div>	
       <div class="form-group">
           <label>用户名</label>           
           <input type="text" class="form-control" name="username" data-ng-model="username" placeholder="输入用户名" disabled> 
       </div>		
       <div class="form-group ">
           <label class="control-label">用户姓名</label>
           <input type="text" class="form-control" name="name" data-ng-model="name" placeholder="请选择用户" disabled>
          
       </div>  
        <div class="row">
            <div class="col-md-12 parent-required">
                <p class="p-required"><sup class="sup-required">*</sup>- 为必填字段</p>
            </div>
        </div>
        <div class="modal-footer">
            <button class="btn btn-success btn-flat {{blockButtonsClass}}" ng-disabled="!(form.$valid && name && userid && username)" type="button" ng-click="addNewclassteacher()">添加</button>
            <button class="btn btn-default btn-flat" type="button" ng-click="closeModal()">取消</button>
        </div>
    </form>
</div>
